<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script src="js/jquery-1.9.1.min.js"></script>
<html>
<head>
    <title>增加学生界面</title>
</head>
<body bgcolor="#87cefa">
    <form action="addStudent" method="post" id="form1">
        学  号：<input type="text" name="studentno" id="no" required="required" /><br/><br/>
        姓  名：<input type="text" name="username" id="name1" required="required" /><br/><br/>
        性  别：<input type="radio" name="sex" value="男" required="required" />男
               <input type="radio"  name="sex" value="女" />女<br/><br/>
        出生日期：<input type="date" name="bdate" required="required" /><br/><br/>
        邮  箱：<input type="email" name="email" required="required" /><br/><br/>
        备注：<input type="text" name="extra" required="required" /><br/><br/>
        <span style="color: red">
            <%

                String addError = (String)session.getAttribute("addError");
                if(addError != null) {
                    out.println(addError);
                }
            %>
        </span>
        <br/>
        <input type="submit" value="提交" />
    </form>
<br/>
</body>
</html>
